package leetcode77双周赛;

public class One {
	
	public static void  main(String []args) {
		
	}
	static int solution(String words [],String s) {
		int ans = 0;
		int len  = 0;
		for(int  i = 0;i < words.length;i++) {
			len = words[i].length();
			if(s.substring(0, len).equals(words[i])) {
				ans++;
			}
		}
		return ans;
	}
}
